<?

function wishlist_getItemContainer($idItem){
	$item=wowhead_getItem($idItem);
	
	if($item!=false){
		$str="<div class='wishlist_item_container wishlist_item_slot_".$item->slot." wowheaditem_tooltip' id='item".$idItem."'>";
		$str.="<table style='width: 100%;'>";
		$str.="<tr>";
		$str.="<td style='width: 10px;'><div style='background-image: url(http://static.wowhead.com/images/icons/small/".strtolower($item->icon).".jpg); background-position: 4px 4px; background-repeat: no-repeat; '><div style='background-image: url(http://static.wowhead.com/images/icon_border_small.png); width: 26px; height: 26px;'></div></div></td>";
		$str.="<td><span>".$item->get_nom2()."</span></td>";
		$str.="</tr>";
		$str.="</table>";
		$str.="</div>";
	
		return $str;
	}else return false;
}

function wishlist_getItem($idPlayer,$slot,$n){
	global $sql;
	$var=$sql->request_single("select * from ".CFG_MYSQL_PREFIX."wishlist_item where idPlayer=".$idPlayer." and slot='".$slot."' and n=".$n);
	return $var;
}